using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input.Touch;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace HighFantasy
{
    public class TouchPanelArea
    {
        public Texture2D Dpad;
        public Texture2D Buttonpad;
        public SpriteBatch sbatch;
        public ContentManager content;
        public Rectangle LeftRectangle, RightRectangle, ApadRectangle, BpadRectangle;
        public Rectangle UpRectangle, DownRectangle, YpadRectangle, XpadRectangle;
        public Vector2 Dpadarea;
        public Vector2 Bpadarea;


        public TouchPanelArea(ContentManager Content)
            {
                this.content = Content;


                Dpad = Content.Load<Texture2D>("Background/Dpad");
                Buttonpad = Content.Load<Texture2D>("Background/Bpad");

                LeftRectangle = new Rectangle(38, 682, 50, 60);
                RightRectangle = new Rectangle(150, 682, 50, 60);
                ApadRectangle = new Rectangle(400, 675, 50, 45);
                YpadRectangle = new Rectangle(298, 675, 50, 45);
                XpadRectangle = new Rectangle(350, 642, 45, 40);
                BpadRectangle = new Rectangle(350, 725, 45, 40);
                UpRectangle = new Rectangle(92, 635, 55, 55);
                DownRectangle = new Rectangle(92, 728, 55, 55);
            }

        public void Update()
            {

            }

        public void Draw(SpriteBatch sbatch, float CameraPos)
          {
              Dpadarea = new Vector2(50 + CameraPos, 640);
              Bpadarea = new Vector2(300 + CameraPos, 640);
              sbatch.Draw(Dpad, Dpadarea, Color.White);
              sbatch.Draw(Buttonpad, Bpadarea, Color.White);
          }


    }
}